package com.app.teaware.bean;

public class BasePageInfoBean extends BasisBean {

    /**
     *
     */
    private static final long serialVersionUID = 1L;


    /**
     * page : 1
     * pagesize : 10
     * total_page : 103
     * count : 1025
     */

    private int pages;
    private int size;
    private int current;
    private int total;

    public int getPage() {
        return pages;
    }

    public void setPage(int page) {
        this.pages = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }



    public boolean hasNextPage() {
        return current < pages;
    }

    public int getNextPage() {
        return getPage() + 1;
    }

}
